package com.example.demo.Entity;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @version: V0.7
 * @author: 郑皓杰 吴嘉鑫
 * @className: Log
 * @packageName: com.example.demo.Entity
 * @description: 这是日志类，用来记录全网的搜索等信息。
 * @data: 2021-07-20
 **/

@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})//是因为查询到的对象是null值没有获取到，无法反序列化为json 返回到前台
@Entity
@Table(name="log")
public class Log {
	
	/**
	 * 日志条目ID
	 */
	@Id
	private String name;
	
	/**
	 * 日志条目次数
	 */
	private Integer weight;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	
	
}
